import QtQuick 2.0

Rectangle {
    width: 320; height: 240
    color: "#eeeeee"

    Rectangle{
        id: rect
        color: "red"
        width: 60; height: 60
        radius: 30
        anchors.centerIn: parent

        MouseArea{
            anchors.fill: parent
            onClicked: ColorAnimation {
                target: rect
                property: "color"
                to: "blue"
                duration: 1500
            }
        }
    }
}
